// 创建数据库集合

// 引入数据库的连接
const mongoose = require("./db.js");

const userSchema = new mongoose.Schema({
        bannerId:{type:String},
        name:{type:String},
        title:{type:String},
        src:{type:String},
        time:{type:String},
        author:{type:String}
});
module.exports = mongoose.model("banners", userSchema);